from fastapi import APIRouter, Depends

from models import UserCreate
from services import UserService

router = APIRouter()


@router.post("/")
def create_user(
    data: UserCreate, user_service: UserService = Depends(UserService.as_dependency())
):
    return user_service.create_user(data)
